<?php

return [
    'build' => 1,
    'adminEmail' => 'admin@example.com',
    'supportEmail' => 'support@example.com',
    'user.passwordResetTokenExpire' => 3600,
    'sequence' => [
        'name' => 'generateSequenceId',
        'table' => [
            'sns_dynamic_comment' => 8,
            'credit_log' => 8,
        ],
    ],
    'format_pattern' => [
        //用户名必须是数字、英文、汉字或者下划线，不能以数字或者下划线开头或结尾
        'username' => '/^[a-zA-Z\x80-\xff]{1}[a-zA-Z0-9_\x80-\xff]{4,30}[a-zA-Z\x80-\xff]{1}$/',
        'mobile' => '/1[3456789]{1}\d{9}$/',
        'email' => '/^\w+([-.]\w+)*@([0-9a-z][0-9a-z-]+.)+[a-z]{2,3}$/',
        'idcardno' => '/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|x|X)$/',
        'vipcard' => '/^(zs|ZS|ccb|CCB|ln|LN)\d{6}$/',
        //密码6-16位字母数字加符号
        'password' => '/((?=.*[a-z])(?=.*\d)|(?=[a-z])(?=.*[#@!~%^&*])|(?=.*\d)(?=.*[#@!~%^&*]))[a-z\d#@!~%^&*]{6,16}/i',
    ],
    'alioss_video_host' => [
        //截帧地址
        'host' => 'https://lntsv.oss-cn-hangzhou.aliyuncs.com',
        //时间
        't' => 0,
        //宽度
        'width' => 187,
        //高度
        'height' => 302,
        //格式
        'format' => 'jpg',
        //截图模式
        'module' => 'fast',
    ],
    'domain' => [
        'h5' => 'http://m.haiquanwan.com.cn/',
        'share' => 'http://m.haiquanwan.com.cn/',
        'paymentNotifyUrl' => 'http://paymch.haiquanwan.com.cn/notify/',
    ],
    'position' => [
        // 'shop.home.navigation' => 2,
        // 'shop.home.socrate.left' => 3,
        // 'shop.home.socrate.right' => 4,
        // 'shop.home.advert' => 5,
    ],
    'app' => [
        'store' => [
            'uid' => 1,
        ],
    ],
    'defaultImages' => [
        'user_avatar' => '/assets/avatar/default.png',
    ],
    'wechat' => [
        'appId' => 'wxec41ceed5aa10217',
        'appSecret' => 'b4c25a70cbf1fa951757677c3e3c0c60',
        'token' => 'e10adc3949ba59abbe56e057f20f883e',
        'encodingAesKey' => 'RMWrt80flDEagVJXSjYmaPH3WMl2YmXRaMJbmo7vpKu',
        'mch_id' => '1254794701',
        'key' => 'e10adc3949ba78abbe56e057f20f883e',
        'notify_url' => 'http://paymch.letsallfilm.cn/notify/wechat',
    ],
//    'shareData' => [
//        'title' => '咸阳海泉湾度假区',
//        'desc' => '都市真温泉，娱乐新天地！',
//        'thumb' => 'http://oss.haiquanwan.com.cn/assets/brand/share.png',
//        'link' => 'http://m.haiquanwan.com.cn',
//    ],
    'credit' => [
        'share' => 5
    ]
];
